package org.benjamin.tenancy.domain;

public class BJUIResult {

	private Integer status;

	private String message;
	
	private boolean closeCurrent = true;

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	

	public boolean isCloseCurrent() {
		return closeCurrent;
	}

	public void setCloseCurrent(boolean closeCurrent) {
		this.closeCurrent = closeCurrent;
	}

	public static BJUIResult defaultSuccess(String message) {
		BJUIResult bjuiResult = new BJUIResult();
		bjuiResult.setStatus(200);
		bjuiResult.setMessage(message);
		return bjuiResult;
	}

}
